<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<div id="">
			省份:<select name="" id="aa" onchange="cpr();">
				<option value="-1">请选择省份</option>
			</select>
			城市:<select name="" id="bb" onchange="cct();">
				<option value="-1">请选择城市</option>
			</select>
			区县:<select name="" id="cc" onchange="cxi();">
				<option value="-1">请选择区县</option>
			</select>
			
		</div>
	</body>
	<script type="text/javascript">
		var provines=['广西省','福建省','江苏省','广东省','浙江省'];
		var citys=[
			['河池市','桂林市','崇左市','柳州市','南宁市'],
			['福州市','厦门市','龙岩市','漳州市','宁德市'],
			['南京市','苏州市','扬州市','南通市','无锡市'],
			['广州市','深圳市','东莞市','佛山市','惠州市'],
			['杭州市','温州市','宁波市','嘉兴市','金华市']
		];
		var xian=[
			['金城江区','宜州区','都安县'],   
			['秀峰区','叠彩区','象山区'],
			['江州区','大新县','天等县'],
			['城中区','鱼峰区','柳南区'],
			['西乡塘区','青秀区','江南区'],
			['台江区','仓山区','鼓楼区'],
			['思明区','海沧区','集美区'],
			['新罗区','永定区','上杭县'],
			['龙文区','长泰区','龙海市'],
			['蕉城区','周宁县','寿宁县'],
			['栖霞区','玄武区','江宁区'],
			['虎丘区','吴中区','相城区'],
			['江都区','广陵区','邗江区'],
			['崇川区','通州区','海门区'],
			['锡山区','惠山区','滨湖区'],
			['荔湾区','越秀区','海珠区'],
			['福田区','南山区','龙华区'],
			['莞城区','万江区','南城区'],
			['南海区','顺德区','三水区'],
			['惠城区','惠阳区','惠东县'],
			['萧山区','富阳区','临安区'],
			['鹿城区','龙湾区','洞头区'],
			['江北区','北仑区','镇海区'],
			['南湖区','秀洲区','海宁市'],
			['婺城区','金东区','武义县']
		];
		function cpr(){
			var probj=document.getElementById('aa');
			var cityobj=document.getElementById('bb');
			var xianobj=document.getElementById('cc');
			cityobj.innerHTML=`<option value="-1">请选择城市</option>`;
			xianobj.innerHTML=`<option value="-1">请选择区县</option>`;
			if(probj.value==-1){
				return;
			}
			var citys = city[probj.value];
			for(var i=0;i<city.length;i++){
				cityobj.innerHTML+=``
			}
		}
	</script>
</html>
